<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
      const data = [
            {
                入职日期: 44505,
                姓名: "小张",
                工号: "9002",
                手机号: "13800000252",
                转正日期: 44892,
                部门: "总裁办"
            },
            {
                入职日期: 44506,
                姓名: "小李",
                工号: 9006,
                手机号: "13810000512",
                转正日期: 44893,
                部门: "总裁办",
            }
        ]
        // 1. 映射对象，根据映射对象找英文的键
        const mapInfo = {
            '入职日期': 'timeOfEntry',
            '手机号': 'mobile',
            '姓名': 'username',
            '转正日期': 'correctionTime',
            '工号': 'workNumber',
            '部门': 'departmentName',
            '聘用形式': 'formOfEmployment'
        }
        const result = data.map(item=>{
          const obj = {}
          const zhKeys = Object.keys(item)
          // console.log(zhKeys)
           zhKeys.map(one=>{
            const enKeys = mapInfo[one]
            // console.log(enKeys) //  ['timeOfEntry', 'username', 'workNumber', 'mobile', 'correctionTime', 'departmentName']
            obj[enKeys] = item[one]
           }) 
         return obj
        })
        console.log(result)

  </script>
</body>
</html>